package com.example.commonlib;


import android.util.Half;

import org.apache.commons.lang3.RandomStringUtils;

import java.io.File;
import java.io.FileWriter;

import lombok.SneakyThrows;

/**
 * Created by 贺玉琨 on 2019/7/8.
 */
public class Test {
    @SneakyThrows
    public static void main(String[] args) {
        FileWriter fileWriter = new FileWriter(new File("random.txt"), true);
        Integer i = 0;
        while (i != Half.MAX_VALUE) {
            fileWriter.append(RandomStringUtils.random(10));
            i++;
        }
        fileWriter.close();
    }
}